/**
 * 
 */
package cn.bblocks.cacheTest.service;

import java.util.List;

import org.springframework.data.domain.Pageable;
//import org.springframework.data.redis.support.Page4Navigator;
import org.springframework.data.redis.support.Page4Navigator;

import cn.bblocks.cacheTest.model.User;
import cn.bblocks.cacheTest.model.UserBank;

/**
 * @author Administrator
 *
 */
public interface UserBankService {
	
	UserBank getBank(Integer id);
	UserBank getBank2(Integer id);
	List<UserBank> getMyBanks(Integer userId);
	
	Page4Navigator<UserBank> getMyPageBanks(Integer userId
			, Pageable pageable);
	
	UserBank add(UserBank onebank);
	
	
	  
	//更新核心信息（idcardseqno 影响查询得结果集）
	UserBank update(UserBank onebank,Integer tagetUserId);
	
	//跟新无关信息
	UserBank update(UserBank onebank);
	
	//核心修改卡状态
	UserBank update2(UserBank onebank);
	
	UserBank deleteByPrimaryKey(UserBank onebank) ;
	
	void add(List<UserBank> banks) ;
	
	
	void initUserBanks(User user) ;
}
